boot = {}
QMPlugin = boot

boot.isSkipStory = true
boot.platform = 1 -- 1安卓 2IOS
function boot.initScreenScale()
--    LuaAuxLib.SetScreenScale(1080, 1920, 0)
    mlog.info("【boot initScreenScale】>>>>>> designScreenX=", define.designScreenX, " ","designScreenY=", define.designScreenY)
end

function boot.init(taskArr,screenX,screenY)
    local taskConfig = {
        ["zhuagui"] = zhuaguiMgr.execTask,
        ["dabao"] = dabaotuMgr.execTask,
        ["wabao"] = zhuaguiMgr.execTask,
        ["paoshang"] = paoshangMgr.execTask,
        ["buyfollow"] = buyfollowMgr.execTask,
        ["tie"] = tiejingshiMgr.execTask,
        ["fuzhi"] = fuzhiMgr.execTask,
        ["jinghe"] = jingheMgr.execTask,
        ["hanhua"] = hanhuaMgr.execTask,
        ["caiji"] = caijiMgr.execTask
    }
    boot.screenX = screenX
    boot.screenY = screenY
    LuaAuxLib.TracePrint("============================")
    for k,v in pairs(taskArr) do
        LuaAuxLib.TracePrint(v)
        if v == true then
            local fun = taskConfig[k]
            if fun then
                fun()
            end
        end
    end

--    mainTaskMgr.execMainTask()
--    LuaAuxLib.ShowMessage("我爱按键精灵",3000,350,350)

--    local val = LuaAuxLib.SmartOcr(779,1011,818,1126,"EFEFF0-303030")
--    LuaAuxLib.TracePrint(val)
--    game.delay(30500)

end